//快捷方式状态数据合计。
Ext.define("ES.store.ShortcutStatusStore",{
    extend:"Ext.data.Store",
    autoLoad:false,
    storeId:"orderNo", 
    fields:[
         {name:"enumName",type:"string"},
         {name:"member",type:"string"},
         {name:"memberName",type:"string"},
         {name:"intValue",type:"int"},
         {name:"orderNo",type:"int"}
     ],
    proxy:{
       type:"ajax",
       url:"CommonEnums!list.action",
       reader:{
           type:"json",
           root:"dataSource.entityList",
           totalProperty:"dataSource.totalCounts"
       },
       listeners:{
           exception:function(proxy, resp, operation, opt){
                   Ext.MessageBox.show({
                       title:"远程异常",
                       msg:operation.getError(),
                       icon:Ext.MessageBox.ERROR,
                       buttons:Ext.Msg.OK
                   });
               }
       }
    },
    listeners:{
        beforeload:function(store, operation){
           Ext.apply(store.proxy.extraParams,{
               enumName:"ES.EnumShortcutStatus",
               ascProperty:"OrderNo",
               asc:true
           });
       }
    },
    getText:function(val){
        var result = "";
        var record = this.findRecord("intValue",val);
        if(record){
            result = record.get("memberName");
        }
        return result;
    }
})